package com.order.domain.pojo;



import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 媒体表
 * </p>
 *
 * @author 小杰大人
 * @since 2025-01-15
 */
@Getter
@Setter
@TableName("media")
@ApiModel(value = "Media对象", description = "媒体表")
public class Media implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    @ApiModelProperty("文件原始名")
    @TableField("origin_name")
    private String originName;

    @ApiModelProperty("文件名")
    @TableField("file_name")
    private String fileName;

    @ApiModelProperty("文件存储桶")
    @TableField("bucket")
    private String bucket;

    @ApiModelProperty("文件保存路径")
    @TableField("file_path")
    private String filePath;

    @ApiModelProperty("文件类型")
    @TableField("file_type")
    private String fileType;

    @ApiModelProperty("文件大小")
    @TableField("file_size")
    private String fileSize;

    @ApiModelProperty("文件md5")
    @TableField("file_md5")
    private String fileMd5;

    @ApiModelProperty("文件访问地址")
    @TableField("url")
    private String url;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time" , fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("创建人")
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    @ApiModelProperty("修改人")
    @TableField(value = "update_user", fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;

    @TableField("duration")
    private Long duration;
}
